package mspbots.qbd.data.online.account;

import org.springframework.data.r2dbc.repository.R2dbcRepository;
import reactor.core.publisher.Mono;

/**
 * mspbots.data.sync.quickbooks.desktop.account.OnlineAccountRepository
 *
 * @author Alex bob(https://github.com/vnobo)
 * @date Created by 2020/5/29
 */
public interface OnlineAccountRepository extends R2dbcRepository<OnlineAccount, Long> {

    /**
     * find entity other id and tenant id
     *
     * @param otherId  other Id
     * @param tenantId tenant id
     * @return account entity
     */
    Mono<OnlineAccount> findByOtherIdAndTenantId(Long otherId, Long tenantId);
}
